﻿namespace DimensionsHelper.Client.WinUi.Views;

public partial class TableInputFileTemplateSelector : DataTemplateSelector
{
    public DataTemplate? SubFile
    {
        get;
        set;
    }


    public DataTemplate? InputFile
    {
        get;
        set;
    }


    public DataTemplate? OutputFile
    {
        get;
        set;
    }


    protected override DataTemplate SelectTemplateCore(object item)
    {
        return item switch
        {
            TableFormatterSubFileViewModel => SubFile!,
            TableFormatterInputFileViewModel => InputFile!,
            _ => OutputFile!
        };
    }
}